<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>


<script>
    /*扩展运算符的应用 符号:...  */
    // 1.合并数组
    // const kuaizi=['王太利','肖央']

    // const array1=['1','2']

    // const result=[...kuaizi,...array1]
    // console.log(result)

    // 2.数组的克隆
    const arr1 = ['a', 'b', 'c']
    const arr2 = [...arr1]
    console.log(arr2)
</script>

</html>